# coding:UTF-8
# 定义师傅类
class Master(object):
    def send(self,msg):
        print('【习得了七十二变心法绝学：%s】' % (msg))

# 找到另外一个师傅，习得长身不老之术
class Anmaster(object):
    def build(self):
        print('【长生不老，秘密在自由基中】')
        return True
    def make_kongfu(self):
        print("习得这项技能")

# 定义徒弟类
class Pretice(Master,Anmaster):
    def kongf_message(self,msg):  # 通道测试
        if self.build():   # 调用父类方法
            self.send(msg)  # 调用父类方法
            self.make_kongfu()  # 调用父类方法

def main():
    kf = Pretice()
    kf.kongf_message('这是跟第一个师傅学习的')

if __name__ == '__main__':
    main()
